package com.example.csetpp.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("users")
public class User {

//    CREATE TABLE user (
//            id VARCHAR(255) NOT NULL COMMENT '用户ID',
//    account VARCHAR(255) NOT NULL COMMENT '账号',
//    username VARCHAR(255) NOT NULL COMMENT '用户名',
//    password VARCHAR(255) NOT NULL COMMENT '密码',
//    frozen TINYINT NOT NULL DEFAULT 0 COMMENT '冻结状态: 0-未冻结, 1-已冻结',
//    role TINYINT NOT NULL DEFAULT 0 COMMENT '角色: 0-用户, 1-管理员',
//    avatar VARCHAR(255)  COMMENT '头像',
//    email VARCHAR(255)  COMMENT '邮箱',
//    create_time BIGINT NOT NULL COMMENT '创建时间戳',
//    PRIMARY KEY (id),
//    UNIQUE KEY (account)
//) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表';

    @TableId
    private String id;

    private String account;

    private String userName;

    private String password;

    private Integer frozen;

    private Integer role;

    private String avatar;

    private String email;

    private Long createTime;

}
